import http from '@/utils/request'

// 查询收藏列表
export const getFavoriteList = (params?: any) => {
    return http.get('/product/api/favorite/list', params)
}

// 查询单个收藏详情
export const getFavoriteInfo = (id: number) => {
    return http.get(`/product/api/favorite/${id}`)
}

// 新增收藏
export const addFavorite = (data: any) => {
    return http.post('/product/api/favorite', data)
}

// 取消收藏（删除）
export const deleteFavorite = (id: number) => {
    return http.delete(`/product/api/favorite/${id}`)
} 